import TabsView from "@/layouts/tabs/TabsView";
import BlankView from "@/layouts/BlankView";
import PageView from "@/layouts/PageView";

// 路由配置
const options = {
  routes: [
    {
      path: "/login",
      name: "登录页",
      component: () => import("@/pages/login"),
    },
    {
      path: "/forgetPassword",
      name: "忘记密码",
      component: () => import("@/pages/login/ForgetPassword.vue"),
    },
    {
      path: "/register",
      name: "注册页",
      component: () => import("../pages/login/register.vue"),
    },
    {
      path: "/",
      name: "首页",
      component: TabsView,
      redirect: "/login",
      children: [
        {
          path: "dashboard",
          name: "分销统计",
          meta: {
            icon: "dashboard",
            page: {
              cacheAble: false,
            },
          },
          component: BlankView,
          children: [
            {
              path: "form",
              name: "报表",
              meta: {
                page: {
                  closable: false,
                },
              },
              component: () => import("../pages/form/reportForm.vue"),
            },
          ],
        },

        {
          path: "basic",
          name: "财务管理",
          meta: {
            icon: "form",
            page: {
              cacheAble: false,
            },
          },
          component: PageView,
          children: [
            {
              path: "customer",
              name: "佣金提现",
              component: () => import("../pages/basic/customer.vue"),
            },
            {
              path: "Warehouse",
              name: "提现管理",
              component: () => import("../pages/basic/Warehouse.vue"),
            },
            {
              path: "company",
              name: "分销商信息",
              component: () => import("../pages/basic/company.vue"),
            },
            {
              path: "memberList",
              name: "会员信息",
              component: () => import("../pages/basic/MemberList.vue"),
            },
            // {
            //   path: "setChildDis",
            //   name: "下级分销商",
            //   component: () => import("../pages/setChildDis/index.vue"),
            // },
          ],
        },
      //   {
      //     path: "/updatePass",
      // name: "修改密码",
      // component: () => import("../pages/login/UpdatePass.vue"),
      //   }
      ],
    },
  ],
};

export default options;
